package com.gxa.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 万事顺意
 * Created with IntelliJ IDEA.
 * User: zwj
 * Date: 2024/07/1611:08
 * Description:
 */
@Data
@TableName("staff")
public class User implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("password")
    private String password;
    @TableField("user")
    private String user;
    private String staffName;
    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "Asia/shanghai")
    private Date entryTime;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "Asia/shanghai")
    private Date resignationTime;
    @TableField("phone")
    private String phone;
    private Integer status;
    private String homeaddress;
    private String department;

}
